<%@page import="com.cms.persist.DaoFactory"%>
<%@page import="com.cms.Utils"%>
<%@page import="com.cms.persist.DaoHelper"%>
<%@page import="javax.jdo.PersistenceManager"%>
<%@page import="com.cms.persist.PMF"%>
<%@ page language="Java"%>
<%@ page contentType="text/html; charset=UTF8"%> 
<%@ page import="java.util.List" %>
<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<%@ page import="com.cms.model.Page" %>

<!DOCTYPE html>


<%@page import="java.util.ArrayList"%>

<html lang="pl-PL">
<%@ include file="header.jsp" %>
	
<%
PersistenceManager pm = PMF.get().getPersistenceManager();

UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();
String url = userService.createLoginURL(request.getRequestURI());
String urlLinktext = "Zaloguj";

boolean isMe = false;
if (user != null)
{
    url = userService.createLogoutURL(request.getRequestURI());
    urlLinktext = "Wyloguj";
    
    String editId = request.getParameter("editid");
    isMe = user.getNickname().equals(System.getProperty("nickname")) || Utils.isDevMode();
}
%>

<div id="main">

	<%@ include file="menu.jsp" %>
	
	<%@ include file="content.jsp" %>

</div> <!-- div main -->

<%@ include file="footer.jsp" %>
</body>
</html>